Skip to main content

revDatabaseConnectResult

Type

function

Summary

Returns the most recent error message for a database.

Syntax

revDatabaseConnectResult(<databaseID>)

Description

Use the revDatabaseConnectResult function to check for successful completion of commands.

If there were no errors on the specified database connection, the revDatabaseConnectResult function returns empty. Otherwise the revDatabaseConnectResult function returns the database specific error message for the most recent database operation that failed.

Important

The revDatabaseConnectResult function is part of the Database library. To ensure that the function works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure both the "Database" library checkbox and those of the database drivers you are using are checked.

Parameters

NameTypeDescription

databaseID

The number returned by the revOpenDatabase function when the database was opened.

Examples

revDatabaseConnectResult(line x of revOpenDatabases())
if revDatabaseConnectResult(myReservations) is empty then exit repeat

function: revQueryResult, revOpenDatabase, revOpenDatabases

glossary: Standalone Application Settings, database, standalone application, return, LiveCode custom library

keyword: string

library: Database library

command: revCloseDatabase

control structure: function

Compatibility and Support

Introduced

LiveCode 1.1

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?